﻿<Window x:Class="SsTool.Common.SelectThemeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        ShowInTaskbar="False"
        Title="SelectEventTypeWindow"
        WindowStartupLocation="CenterScreen"
        SizeToContent="Height"
        Height="300"
        Width="300">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <ListBox Grid.Row="0" Name="_ctlList">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <TextBlock Text="{Binding Path=Caption}"/>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Name="_ctlBtnSubmit" Click="_ctlBtnSubmit_Click" Margin="5,5,0,5">
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/accept.png" Margin="0,0,5,0"/>
                    <TextBlock Text="选择"/>
                </StackPanel>
            </Button>
            <Button Name="_ctlBtnCancel" Click="_ctlBtnCancel_Click" Margin="5,5,5,5">
                <StackPanel Orientation="Horizontal">
                    <Image Source="../Resources/cancel.png" Margin="0,0,5,0"/>
                    <TextBlock Text="取消"/>
                </StackPanel>
            </Button>
        </StackPanel>
    </Grid>
</Window>
